package dp;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * Description:
 * Author:    Dane
 * CreateTime:2024/10/11-下午9:08
 * Since  :   1.0
 * Version:   1.0
 */
public class Main {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        ArrayList<Integer> nums = new ArrayList<>();
        while (in.hasNext()) {
            String a = in.next();
//            System.out.println(1);
//            String[] split = a.split(",");
//            for (int i = 0; i < split.length; i++) {
//                nums.add(Integer.valueOf(split[i]));
//            }
//
//        }
            String[] split = a.split(",");
            for (String s : split) {
                nums.add(Integer.valueOf(s));
            }
            for (int i : nums) {
                System.out.println(i);
            }

//        Scanner in = new Scanner(System.in);
//        while (in.hasNextInt()){
//            int a=in.nextInt();
//            int b=in.nextInt();
//            System.out.println(a+b);
//        }
//        System.out.println(in.next());
        }
    }
}
